<template>
    <div class="container">
        <div class="login-wrapper">
            <div class="header">Login</div>
            <div class="form-wrapper">
                <input type="text" name="username" placeholder="username" class="input-item">
                <input type="password" name="password" placeholder="password" class="input-item">
                <!-- 添加 select 元素 -->
                <!-- <select class="input-item">
                    <option value="option1">Option 1</option>
                    <option value="option2">Option 2</option>
                    <option value="option3">Option 3</option> -->
                    <!-- 更多选项 -->
                <!-- </select> -->
<!--                <select v-model="select" @change="onChange"-->
<!--                    class="p-1 pr-3 rounded-md text-gray-500 hover:bg-gray-100 dark:hover:text-gray-400 dark:hover:bg-gray-900 disabled:hover:bg-transparent dark:disabled:hover:bg-transparent min-w-[100px] input-item">-->
<!--                    <option disabled value="">select</option>-->
<!--                    <option v-for="option in selectOptions" :key="option.value" :value="option.value">-->
<!--                        {{ option.text }}-->
<!--                    </option>-->
<!--                </select>-->
                <router-link to="/" class="btn">登录测试账户</router-link>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "Login",
    data() {
        return {
            select: 'select',
            selectOptions: [
                { value: '选择一', text: '选择一'},
                { value: '选择二', text: '选择二'},
            ]
        }
    },
    methods: {
        onChange(event) {
            // 处理选择框变更的逻辑
            console.log(event.target.value);
        }
    }
}
</script>

<style scoped>
html {
    height: 100%;
}
body {
    height: 100%;
}
.container {
    height: 100%;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, #f4ecf2, #4b4e52);
}

.login-wrapper {
    background-color: #fff;
    width: 100%;
    /* Full width */
    max-width: 400px;
    /* Maximum width */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.input-item {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid rgb(128, 125, 125);
    border-radius: 4px;
    font-size: 15px;
}

.input-item::placeholder {
    text-transform: uppercase;
}

.btn {
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    width: 100%;
    margin-top: 40px;
    background-image: linear-gradient(to right, #f4ecf2, #4b4e52);
    color: #fff;
    border: none; /* 添加这一行来移除边框 */
}


.msg {
    text-align: center;
    line-height: 88px;
}

a {
    text-decoration-line: none;
    color: #abc1ee;
}
</style>
